//package com.mcf.xiaolinju;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import com.mcf.xiaolinju.interceptor.UserLoginException;
//import com.mcf.xiaolinju.interceptor.UserLoginInvalidException;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.RestControllerAdvice;
//
//import javax.servlet.http.HttpServletRequest;
//
//@RestControllerAdvice
//public class ExceptionsFuction {
//
//    @ExceptionHandler({UserLoginInvalidException.class})
//    public ResponseEntity<UserLoginInvalidException> businessExceptionHandler(HttpServletRequest request, UserLoginInvalidException e) throws UserLoginInvalidException {
//        return new ResponseEntity(new UserLoginInvalidException(e.getMessage()), HttpStatus.CONFLICT);
//    }
//
//
//
//
//
//}
